<template>
  <div>
    <div class="card-header">
      <span>{{ title }}</span>

    </div>
    <div class="card-content">{{ count }}</div>
    <div class="card-charts">
      <slot name="charts"></slot>
    </div>
    <div class="card-footer">
      <slot name="footer"></slot>
    </div>
  </div>
</template>

<script lang="js" setup>
import { ref } from 'vue';
const props = defineProps(['title', 'count'])

</script>
 
<style scoped>
.card-header
{
  display: flex;
  justify-content: space-between;
  color: #d9d9d9;
}

.card-content
{
  font-size: 30px;
  padding: 10px 0px;
}

.card-charts
{
  height: 50px;
}

.card-footer
{
  border-top: 1px solid #eee;
  padding-top: 10px;
}
</style>